package happy.study.clique.module.study.design.factory.abstraction.code.impl;

import happy.study.clique.module.study.design.factory.abstraction.code.FactoryInterface;
import happy.study.clique.module.study.design.factory.abstraction.code.NotebookInterface;
import happy.study.clique.module.study.design.factory.abstraction.code.PhoneInterface;

/**
 * 小工厂
 *
 * @author fsq
 * @date 2021/11/12 17:19
 **/
public class OtherFactory implements FactoryInterface {

    @Override
    public PhoneInterface createPhone() {
        return new MiPhone();
    }

    @Override
    public NotebookInterface createNoteBook() {
        return new HpBook();
    }
}
